package com.group01.service;

import com.group01.dto.Order.OrderDTO;
import com.group01.dto.Order.OrderDeliveryDTO;
import com.group01.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group01.result.OrderPageTemplate;
import com.group01.result.Result;
import com.group01.vo.Order.OrderGetInfoVO;
import com.group01.vo.Order.OrderGetPageVO;

import java.util.List;

/**
* @author 19559
* @description 针对表【es_order(订单表)】的数据库操作Service
* @createDate 2024-06-22 12:11:46
*/
public interface OrderService extends IService<Order> {

    OrderPageTemplate<OrderGetPageVO> getOrderList(Integer pageNum, Integer pageSize, String id, Integer status);

    OrderGetInfoVO getOrderInfoById(String orderId);

    Result<String> deliveryOrderInfo(OrderDeliveryDTO orderDeliveryDTO);

    Result<List<OrderGetPageVO>> getOrderInfos(String id, Integer status);

    Result<OrderGetPageVO> addOrder(OrderDTO orderDTO);

    Result<String> completeOrder(String orderId);

    Result<String> closeOrder(String orderId);

    void updateOrderById(Order order);
}
